import { post } from '@/utils/request'

export function fetchRoutes() {
  return {
    "code": 0,
    "data": [
      {
        "children": [
          {
            "children": [],
            "component": "dashboard",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": false,
            "id": "1367010529427607569",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "管理首页"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "管理首页",
            "name": "Dashboard",
            "parentId": "1367010529427607568",
            "path": "/admin/dashboard",
            "permissionTag": "",
            "redirect": "",
            "sort": 1,
            "updateBy": "10001",
            "updateTime": "2021-06-02 18:18:23"
          }
        ],
        "component": "Layout",
        "createBy": "",
        "createTime": "2021-03-07 11:08:18",
        "dataFlag": 1,
        "hidden": false,
        "id": "1367010529427607568",
        "menuType": 1,
        "meta": {
          "noCache": true,
          "icon": "component",
          "title": "管理首页"
        },
        "metaActiveMenu": "",
        "metaIcon": "component",
        "metaNoCache": true,
        "metaTitle": "管理首页",
        "name": "Admin",
        "parentId": "0",
        "path": "/admin",
        "permissionTag": "",
        "redirect": "/admin/dashboard",
        "sort": 3,
        "updateBy": "10001",
        "updateTime": "2021-06-02 18:18:14"
      },
      {
        "children": [
          {
            "children": [],
            "component": "admin/course",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": false,
            "id": "1367010529427607571",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "课程管理"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "课程管理",
            "name": "ListCourse",
            "parentId": "1367010529427607570",
            "path": "/admin/course/list",
            "permissionTag": "course:list",
            "redirect": "",
            "sort": 1,
            "updateBy": "10001",
            "updateTime": "2021-05-31 12:55:36"
          },
          {
            "children": [],
            "component": "admin/course/form",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607572",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/course/list",
              "title": "添加课程"
            },
            "metaActiveMenu": "/admin/course/list",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "添加课程",
            "name": "AddCourse",
            "parentId": "1367010529427607571",
            "path": "/admin/course/add",
            "permissionTag": "course:add",
            "redirect": "",
            "sort": 2,
            "updateBy": "10001",
            "updateTime": "2021-05-31 12:55:55"
          },
          {
            "children": [],
            "component": "admin/course/form",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607573",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/course/list",
              "title": "修改课程"
            },
            "metaActiveMenu": "/admin/course/list",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "修改课程",
            "name": "UpdateCourse",
            "parentId": "1367010529427607571",
            "path": "/admin/course/update/:id",
            "permissionTag": "course:update",
            "redirect": "",
            "sort": 3,
            "updateBy": "10001",
            "updateTime": "2021-05-31 12:56:01"
          },
          {
            "children": [],
            "component": "admin/course/stat",
            "createBy": "10001",
            "createTime": "2021-12-09 10:21:05",
            "dataFlag": 0,
            "hidden": true,
            "id": "1468767625566773250",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/course/list",
              "title": "统计总览"
            },
            "metaActiveMenu": "/admin/course/list",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "统计总览",
            "name": "CourseStat",
            "parentId": "1367010529427607571",
            "path": "/admin/course/stat/:courseId",
            "permissionTag": "",
            "redirect": "",
            "sort": 8,
            "updateBy": "10001",
            "updateTime": "2021-12-09 11:51:45"
          },
          {
            "children": [],
            "component": "admin/course/file",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": false,
            "id": "1367010529427607574",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "课件管理"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "课件管理",
            "name": "ListFile",
            "parentId": "1367010529427607570",
            "path": "/admin/course/file",
            "permissionTag": "course:file:list",
            "redirect": "",
            "sort": 1,
            "updateBy": "10001",
            "updateTime": "2022-11-16 11:15:00"
          },
          {
            "children": [],
            "component": "admin/course/qa",
            "createBy": "",
            "createTime": "2021-04-19 15:32:50",
            "dataFlag": 1,
            "id": "1384047322324905986",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "问答管理"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "问答管理",
            "name": "CourseQa",
            "parentId": "1367010529427607570",
            "path": "/admin/course/qa",
            "permissionTag": "course:qa:list",
            "redirect": "",
            "sort": 4,
            "updateBy": "10001",
            "updateTime": "2022-11-16 11:15:05"
          },
          {
            "children": [],
            "component": "admin/order/course",
            "createBy": "10001",
            "createTime": "2021-12-03 16:00:55",
            "dataFlag": 0,
            "hidden": true,
            "id": "1466678820745912321",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "课程订单"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "课程订单",
            "name": "CourserOrder",
            "parentId": "1367010529427607570",
            "path": "/admin/course/order",
            "permissionTag": "course:order",
            "redirect": "",
            "sort": 9,
            "updateBy": "10001",
            "updateTime": "2023-11-05 16:16:52"
          }
        ],
        "component": "Layout",
        "createBy": "",
        "createTime": "2021-03-07 11:08:18",
        "dataFlag": 1,
        "hidden": false,
        "id": "1367010529427607570",
        "menuType": 1,
        "meta": {
          "noCache": true,
          "icon": "repo",
          "title": "课程管理"
        },
        "metaActiveMenu": "",
        "metaIcon": "repo",
        "metaNoCache": true,
        "metaTitle": "课程管理",
        "name": "Course",
        "parentId": "0",
        "path": "/admin/course",
        "permissionTag": "",
        "redirect": "/admin/course/course",
        "sort": 4,
        "updateBy": "10001",
        "updateTime": "2021-05-31 12:55:22"
      },
      {
        "children": [
          {
            "children": [],
            "component": "admin/exam/exam",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": false,
            "id": "1367010529427607585",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "考试管理"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "考试管理",
            "name": "ListExam",
            "parentId": "1367010529427607578",
            "path": "/admin/exam/exam",
            "permissionTag": "exam:list",
            "redirect": "",
            "sort": 1,
            "updateBy": "10001",
            "updateTime": "2021-05-31 10:13:10"
          },
          {
            "children": [],
            "component": "admin/exam/exam/form",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607589",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/exam",
              "title": "添加考试"
            },
            "metaActiveMenu": "/admin/exam/exam",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "添加考试",
            "name": "AddExam",
            "parentId": "1367010529427607585",
            "path": "/admin/exam/exam/add/:tmplId",
            "permissionTag": "exam:add",
            "redirect": "",
            "sort": 12,
            "updateBy": "10001",
            "updateTime": "2021-05-31 10:06:01"
          },
          {
            "children": [],
            "component": "admin/exam/exam/form",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607590",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/exam",
              "title": "修改考试"
            },
            "metaActiveMenu": "/admin/exam/exam",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "修改考试",
            "name": "UpdateExam",
            "parentId": "1367010529427607585",
            "path": "/admin/exam/exam/update/:id",
            "permissionTag": "exam:update",
            "redirect": "",
            "sort": 13,
            "updateBy": "",
            "updateTime": "2021-03-07 11:08:18"
          },
          {
            "children": [],
            "component": "admin/user/exam",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607591",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/exam",
              "title": "考试记录"
            },
            "metaActiveMenu": "/admin/exam/exam",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "考试记录",
            "name": "ListExamUser",
            "parentId": "1367010529427607585",
            "path": "/admin/exam/exam/users/:examId",
            "permissionTag": "exam:list",
            "redirect": "",
            "sort": 14,
            "updateBy": "10001",
            "updateTime": "2021-05-31 10:06:31"
          },
          {
            "children": [],
            "component": "admin/exam/exam/stat",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607594",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/exam",
              "title": "考试统计"
            },
            "metaActiveMenu": "/admin/exam/exam",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "考试统计",
            "name": "ExamStat",
            "parentId": "1367010529427607585",
            "path": "/admin/exam/exam/stat/:examId",
            "permissionTag": "exam:stat:stat",
            "redirect": "",
            "sort": 17,
            "updateBy": "10001",
            "updateTime": "2021-06-06 07:54:07"
          },
          {
            "children": [],
            "component": "admin/exam/watch",
            "createBy": "10001",
            "createTime": "2021-12-02 10:48:09",
            "dataFlag": 0,
            "hidden": true,
            "id": "1466237721944031233",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/exam",
              "title": "在线监考"
            },
            "metaActiveMenu": "/admin/exam/exam",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "在线监考",
            "name": "ExamWatch",
            "parentId": "1367010529427607585",
            "path": "/admin/exam/watch/:examId",
            "permissionTag": "exam:watch",
            "redirect": "",
            "sort": 21,
            "updateBy": "10001",
            "updateTime": "2022-12-13 14:33:35"
          },
          {
            "children": [],
            "component": "admin/exam/review",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": false,
            "id": "1367010529427607586",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "阅卷管理"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "阅卷管理",
            "name": "ReviewList",
            "parentId": "1367010529427607578",
            "path": "/admin/exam/review",
            "permissionTag": "exam:review:list",
            "redirect": "",
            "sort": 2,
            "updateBy": "10001",
            "updateTime": "2022-11-16 11:15:14"
          },
          {
            "children": [],
            "component": "admin/paper/paper/review",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607587",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/review",
              "title": "试卷列表"
            },
            "metaActiveMenu": "/admin/exam/review",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "试卷列表",
            "name": "ReviewPaper",
            "parentId": "1367010529427607586",
            "path": "/admin/exam/review-list/:examId",
            "permissionTag": "exam:review:exam",
            "redirect": "",
            "sort": 10,
            "updateBy": "10001",
            "updateTime": "2021-06-06 16:06:09"
          },
          {
            "children": [],
            "component": "admin/paper/paper/detail",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607588",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/review",
              "title": "试卷详情"
            },
            "metaActiveMenu": "/admin/exam/review",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "试卷详情",
            "name": "ReviewPaperDetail",
            "parentId": "1367010529427607586",
            "path": "/admin/exam/review-detail/:paperId",
            "permissionTag": "exam:review:detail",
            "redirect": "",
            "sort": 11,
            "updateBy": "10001",
            "updateTime": "2021-06-06 16:06:19"
          },
          {
            "children": [],
            "component": "admin/tmpl",
            "createBy": "",
            "createTime": "2021-04-23 11:38:23",
            "dataFlag": 1,
            "id": "1385437872710021121",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "试卷管理"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "试卷管理",
            "name": "ExamTmpl",
            "parentId": "1367010529427607578",
            "path": "/admin/tmpl/list",
            "permissionTag": "tmpl:list",
            "redirect": "",
            "sort": 2,
            "updateBy": "10001",
            "updateTime": "2021-05-31 10:13:19"
          },
          {
            "children": [],
            "component": "admin/tmpl/form",
            "createBy": "",
            "createTime": "2021-04-23 11:42:40",
            "dataFlag": 1,
            "hidden": true,
            "id": "1385438948909707265",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/tmpl/list",
              "title": "添加试卷"
            },
            "metaActiveMenu": "/admin/tmpl/list",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "添加试卷",
            "name": "ExamTmplAdd",
            "parentId": "1385437872710021121",
            "path": "/admin/tmpl/add/:title/:catId/:joinType/:timeType",
            "permissionTag": "tmpl:add",
            "redirect": "",
            "sort": 20,
            "updateBy": "",
            "updateTime": "2021-04-23 11:42:40"
          },
          {
            "children": [],
            "component": "admin/tmpl/form",
            "createBy": "",
            "createTime": "2021-04-23 11:44:37",
            "dataFlag": 1,
            "hidden": true,
            "id": "1385439442117914625",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/tmpl/list",
              "title": "修改试卷"
            },
            "metaActiveMenu": "/admin/tmpl/list",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "修改试卷",
            "name": "ExamTmplUpdate",
            "parentId": "1385437872710021121",
            "path": "/admin/tmpl/upadte/:id",
            "permissionTag": "tmpl:update",
            "redirect": "",
            "sort": 21,
            "updateBy": "",
            "updateTime": "2021-04-23 11:44:37"
          },
          {
            "children": [],
            "component": "admin/tmpl/preview",
            "createBy": "",
            "createTime": "2021-04-29 10:27:11",
            "dataFlag": 1,
            "hidden": true,
            "id": "1387594282415710209",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/tmpl/list",
              "title": "预览试卷"
            },
            "metaActiveMenu": "/admin/tmpl/list",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "预览试卷",
            "name": "ExamTmplPreview",
            "parentId": "1385437872710021121",
            "path": "/admin/tmpl/preview/:id",
            "permissionTag": "tmpl:preview",
            "redirect": "",
            "sort": 22,
            "updateBy": "",
            "updateTime": "2021-04-29 10:27:11"
          }
        ],
        "component": "Layout",
        "createBy": "",
        "createTime": "2021-03-07 11:08:18",
        "dataFlag": 1,
        "hidden": false,
        "id": "1367010529427607578",
        "menuType": 1,
        "meta": {
          "noCache": true,
          "icon": "example",
          "title": "考试管理"
        },
        "metaActiveMenu": "",
        "metaIcon": "example",
        "metaNoCache": true,
        "metaTitle": "考试管理",
        "name": "Exam",
        "parentId": "0",
        "path": "/admin/exam",
        "permissionTag": "",
        "redirect": "/admin/exam/exam",
        "sort": 5,
        "updateBy": "10001",
        "updateTime": "2021-05-31 12:54:57"
      },
      {
        "children": [
          {
            "children": [],
            "component": "admin/repo",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": false,
            "id": "1367010529427607579",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "题库管理"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "题库管理",
            "name": "ListRepo",
            "parentId": "1470925774608510977",
            "path": "/admin/exam/repo",
            "permissionTag": "repo:list",
            "redirect": "",
            "sort": 1,
            "updateBy": "10001",
            "updateTime": "2021-12-15 09:57:01"
          },
          {
            "children": [],
            "component": "admin/exam/tmpl",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": false,
            "id": "1367010529427602345",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "出题"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "出题",
            "name": "ListRepo",
            "parentId": "1470925774608510977",
            "path": "/admin/exam/tmpl",
            "permissionTag": "repo:list",
            "redirect": "",
            "sort": 1,
            "updateBy": "10001",
            "updateTime": "2021-12-15 09:57:01"
          },
          {
            "children": [],
            "component": "admin/repo/form",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607580",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/repo",
              "title": "添加题库"
            },
            "metaActiveMenu": "/admin/exam/repo",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "添加题库",
            "name": "AddRepo",
            "parentId": "1367010529427607579",
            "path": "/admin/exam/repo/add",
            "permissionTag": "repo:add",
            "redirect": "",
            "sort": 4,
            "updateBy": "",
            "updateTime": "2021-03-07 11:08:18"
          },
          {
            "children": [],
            "component": "admin/repo/form",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607581",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/exam/repo",
              "title": "修改题库"
            },
            "metaActiveMenu": "/admin/exam/repo",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "修改题库",
            "name": "UpdateRepo",
            "parentId": "1367010529427607579",
            "path": "/admin/exam/repo/update/:id",
            "permissionTag": "repo:update",
            "redirect": "",
            "sort": 5,
            "updateBy": "",
            "updateTime": "2021-03-07 11:08:18"
          },
          {
            "children": [],
            "component": "admin/repo/qu",
            "createBy": "10001",
            "createTime": "2021-12-15 09:18:28",
            "dataFlag": 0,
            "id": "1470926194735165442",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "试题管理"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "试题管理",
            "name": "QuList",
            "parentId": "1470925774608510977",
            "path": "/admin/repo/qu",
            "permissionTag": "qu:list",
            "redirect": "",
            "sort": 3,
            "updateBy": "10001",
            "updateTime": "2021-12-15 09:57:01"
          },
          {
            "children": [],
            "component": "admin/repo/qu/form",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607583",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/repo/qu",
              "title": "添加试题"
            },
            "metaActiveMenu": "/admin/repo/qu",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "添加试题",
            "name": "AddQu",
            "parentId": "1470926194735165442",
            "path": "/admin/repo/qu/add",
            "permissionTag": "qu:add",
            "redirect": "",
            "sort": 7,
            "updateBy": "10001",
            "updateTime": "2021-12-15 15:54:05"
          },
          {
            "children": [],
            "component": "admin/repo/qu/form",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607584",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/repo/qu",
              "title": "修改试题"
            },
            "metaActiveMenu": "/admin/repo/qu",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "修改试题",
            "name": "UpdateQu",
            "parentId": "1470926194735165442",
            "path": "/admin/repo/qu/update/:id",
            "permissionTag": "qu:update",
            "redirect": "",
            "sort": 8,
            "updateBy": "10001",
            "updateTime": "2021-12-15 10:17:08"
          },
          {
            "children": [],
            "component": "admin/repo/qu",
            "createBy": "",
            "createTime": "2021-03-07 11:08:18",
            "dataFlag": 1,
            "hidden": true,
            "id": "1367010529427607582",
            "menuType": 2,
            "meta": {
              "noCache": true,
              "activeMenu": "/admin/repo/qu",
              "title": "题库试题"
            },
            "metaActiveMenu": "/admin/repo/qu",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "题库试题",
            "name": "ListQuByRepo",
            "parentId": "1470926194735165442",
            "path": "/admin/repo/qu/:repoId",
            "permissionTag": "qu:list",
            "redirect": "",
            "sort": 19,
            "updateBy": "10001",
            "updateTime": "2021-12-15 10:35:16"
          },
          {
            "children": [],
            "component": "admin/repo/stat",
            "createBy": "10001",
            "createTime": "2021-12-15 11:40:41",
            "dataFlag": 0,
            "id": "1470961983810883585",
            "menuType": 1,
            "meta": {
              "noCache": true,
              "title": "训练统计"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaNoCache": true,
            "metaTitle": "训练统计",
            "name": "RepoStat",
            "parentId": "1470925774608510977",
            "path": "/admin/repo/stat",
            "permissionTag": "repo:stat",
            "redirect": "",
            "sort": 3,
            "updateBy": "10001",
            "updateTime": "2022-11-16 11:15:26"
          }
        ],
        "component": "Layout",
        "createBy": "10001",
        "createTime": "2021-12-15 09:16:48",
        "dataFlag": 0,
        "id": "1470925774608510977",
        "menuType": 1,
        "meta": {
          "noCache": true,
          "icon": "documentation",
          "title": "题库管理"
        },
        "metaActiveMenu": "",
        "metaIcon": "documentation",
        "metaNoCache": true,
        "metaTitle": "题库管理",
        "name": "RepoMenu",
        "parentId": "0",
        "path": "/admin/qu",
        "permissionTag": "",
        "redirect": "",
        "sort": 6,
        "updateBy": "10001",
        "updateTime": "2023-02-03 11:45:21"
      },
      {
        "children": [
          {
            "children": [],
            "component": "admin/notify/msg",
            "createBy": "10001",
            "createTime": "2022-11-08 11:20:11",
            "dataFlag": 0,
            "id": "1589820047751127041",
            "menuType": 1,
            "meta": {
              "title": "消息记录"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaTitle": "消息记录",
            "name": "NotifyMsg",
            "parentId": "1589819179303706626",
            "path": "/admin/notify/msg",
            "permissionTag": "notify:msg:list",
            "redirect": "",
            "sort": 1,
            "updateBy": "10001",
            "updateTime": "2022-11-10 10:12:17"
          },
          {
            "children": [],
            "component": "admin/notify/tmpl",
            "createBy": "10001",
            "createTime": "2022-11-08 11:18:21",
            "dataFlag": 0,
            "hidden": false,
            "id": "1589819585421385729",
            "menuType": 1,
            "meta": {
              "title": "消息模板"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaTitle": "消息模板",
            "name": "MsgTmpl",
            "parentId": "1589819179303706626",
            "path": "/admin/notify/tmpl",
            "permissionTag": "notfiy:tmpl:list",
            "redirect": "",
            "sort": 2,
            "updateBy": "10001",
            "updateTime": "2022-11-10 10:12:17"
          },
          {
            "children": [],
            "component": "admin/notify/config",
            "createBy": "10001",
            "createTime": "2022-11-08 16:01:48",
            "dataFlag": 0,
            "id": "1589890918616440833",
            "menuType": 1,
            "meta": {
              "title": "消息设置"
            },
            "metaActiveMenu": "",
            "metaIcon": "",
            "metaTitle": "消息设置",
            "name": "NotifyConfig",
            "parentId": "1589819179303706626",
            "path": "/admin/notify/config",
            "permissionTag": "notify:config:list",
            "redirect": "",
            "sort": 3,
            "updateBy": "10001",
            "updateTime": "2022-11-18 11:16:50"
          }
        ],
        "component": "Layout",
        "createBy": "10001",
        "createTime": "2022-11-08 11:16:44",
        "dataFlag": 0,
        "id": "1589819179303706626",
        "menuType": 1,
        "meta": {
          "icon": "notify",
          "title": "消息管理"
        },
        "metaActiveMenu": "",
        "metaIcon": "notify",
        "metaTitle": "消息管理",
        "name": "Notify",
        "parentId": "0",
        "path": "/admin/notify",
        "permissionTag": "",
        "redirect": "",
        "sort": 12,
        "updateBy": "10001",
        "updateTime": "2022-11-16 11:26:17"
      }
    ],
    "msg": "操作成功！",
    "success": true
  }
}

export function fetchTree(data) {
  return post('/api/sys/menu/tree', data)
}

export function fetchDetail(id) {
  return post('/api/sys/menu/detail', { id: id })
}

export function deleteData(ids) {
  const data = { ids: ids }
  return post('/api/sys/menu/delete', data)
}

export function saveData(data) {
  return post('/api/sys/menu/save', data)
}

export function sortData(id, sort) {
  const data = { id: id, sort: sort }
  return post('/api/sys/menu/sort', data)
}
